home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _CAD12AF6688440F9BC3C9BD3226FEA03 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.6 KB  |  53 lines

  1. //CGVER1.8
  2. vs_1_1
  3. // DX9 Vertex shader generated by NVIDIA Cg compiler
  4. // cgc version 1.1.0003, build date Jul  7 2003  11:55:19
  5. // command line args: -q -profile vs_1_1 -entry main -profileopts dcls
  6. // nv30vp backend compiling 'main' program
  7. def c5, 0, 0, 0, 0
  8. //vendor NVIDIA Corporation
  9. //version 1.0.02
  10. //profile vs_1_1
  11. //program main
  12. //semantic main.ModelViewProj : C0
  13. //semantic main.LightPos : C4
  14. //semantic main.AttenInfo : C6
  15. //semantic main.g_VSCONST_0_025_05_1 : C28
  16. //var float4 IN.Position : $vin.POSITION : POSITION : 0 : 1
  17. //var float3 IN.Tangent : $vin.TEXCOORD2 : TEXCOORD2 : 0 : 1
  18. //var float3 IN.Binormal : $vin.TEXCOORD3 : TEXCOORD3 : 0 : 1
  19. //var float3 IN.TNormal : $vin.BLENDWEIGHT : BLENDWEIGHT : 0 : 1
  20. //var float4x4 ModelViewProj : C0 : c[0], 4 : 1 : 1
  21. //var float4 LightPos : C4 : c[4] : 2 : 1
  22. //var float4 AttenInfo : C6 : c[6] : 3 : 1
  23. //var float4 g_VSCONST_0_025_05_1 : C28 : c[28] : 4 : 1
  24. //var float4 HPosition : $vout.POSITION : POSITION : -1 : 1
  25. //var float4 Tex0 : $vout.TEXCOORD0 : TEXCOORD0 : -1 : 1
  26. //var float4 Tex1 : $vout.TEXCOORD1 : TEXCOORD1 : -1 : 1
  27. //var float4 Color : $vout.COLOR0 : COLOR0 : -1 : 1
  28. //const c[5] = 0 0 0 0
  29. dcl_blendweight v1
  30. dcl_texcoord3 v10
  31. dcl_texcoord2 v9
  32. dcl_position v0
  33.     dp4 oPos.x, c0, v0
  34.     dp4 oPos.y, c1, v0
  35.     dp4 oPos.z, c2, v0
  36.     dp4 oPos.w, c3, v0
  37.     add r1.xyz, c4.xyz, -v0.xyz
  38.     dp3 r0.y, v9.xyz, r1.xyz
  39.     dp3 r0.z, v10.xyz, r1.xyz
  40.     dp3 r0.w, v1.xyz, r1.xyz
  41.     mul r0.x, c6.y, c6.z
  42.     mad r0, r0.yzw, r0.x, c6.z
  43.     mov oT1.xyz, r0
  44.     mov oD0.xyz, r0
  45.     dp3 r0.x, r1.xyz, v1.xyz
  46.     slt r0.y, c5.x, r0.x
  47.     slt r0.x, r0.x, c5.x
  48.     add r0.x, r0.y, -r0.x
  49.     max oD0.w, c5.x, r0.x
  50. // 17 instructions
  51. // 2 temp registers
  52. // End of program
  53.